package com.lmabbe.common.mvc.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.stereotype.Component;

/**
 * @author lmabbe
 * @data 2021/3/22 22:15
 */
@Data
@Component
@ConfigurationProperties(prefix = "lmabbe.mvc")
public class LmabbeMvcProperties {

    private boolean enable = true;

    private boolean enableCors = true;

    /**
     * 是否是平台
     */
    private boolean platform = false;

    @NestedConfigurationProperty
    private LmabbeSwaggerProperties swagger = new LmabbeSwaggerProperties();

}
